package dgut.party.business.service.publication;

import dgut.party.business.common.enumeration.Priority;
import dgut.party.business.common.util.PageableBuilder;
import dgut.party.business.entity.publication.Publication;
import org.springframework.data.domain.Page;

import java.util.List;

public interface PublicationRetrieveService {

  String getPubContent(Long id);

  Publication findOneById(Long id);

  List<Publication> findAllByTitle(String title);

  List<Publication> findLatestTop5Pub(String type, Priority priority);

  Page<Publication> allAvailablePubsPage(String keyword, String pubType, PageableBuilder pageableBuilder);

  Page<Publication> allPubsPage(String keyword, String pubType, PageableBuilder pageableBuilder);


}
